@import (reference) "~antd/es/style/themes/index";

.box {
  position: relative;
  width: 100%;
  height: 100%;
  border:1px solid #c8c8c8;
  border-radius: 8px;
}

.left {
  display: flex;
  align-items: center;
  width: 240px;

  a {
    display: block;
    margin-right: 12px;
    padding: 0 24px 0 14px;
    border-radius: 0 8px 8px 0;
    transition: all 0.4s;

    &:hover {
      border-radius: 0;
    }
  }

  span {
    padding-left: 6px;
  }

  img {
    height: 24px;
  }
}

.right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  width: 325px;

  a {
    display: block;
    padding: 0 20px 0 12px;
    transition: all 0.4s;
    &:hover {
      border-radius: 0;
    }
  }

  span {
    padding-left: 6px;
  }
}

.menu {
  display: flex;
  flex-direction: column;
  align-items: center;
  width: 80px;
  height: 100%;
  position: absolute;
  z-index: 666;
  left: 0;
  top: 0;
  background-color: #f1f5f3;

  .menuitem {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    width: 80px;
    height: 80px;
    background-color: #fff;
    transition: background color 0.4s;
    cursor: pointer;

    p {
      margin: 0;
      padding: 0;
    }
  }

  .active {
    background-color: #f1f5f3;
    color: @primary-color;
  }

  .preactive {
    border-radius: 0px 0px 8px 0px !important;
  }

  .active+.menuitem {
    border-radius: 0px 8px 0px 0px !important;
  }

  .menusub {
    background-color: #fff;
    flex: 1;
    width: 100%;
    display: flex;
    flex-direction: column;
    justify-content: flex-end;
    align-items: center;
    padding-bottom: 24px;
    >div{
      cursor: pointer;
      color: @primary-color;
    }
  }

}

.menuextra {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 555;
  width: 280px;
  height: 100%;
  overflow: hidden;
  background-color: #f1f5f3;
}
.alayer{
  position: absolute;
  right: -80px;
  width: 80px;
  height: 80px;
  top: 0;
  z-index: 444;
  background-color: #f1f5f3;
  border-radius: 0px 0px 8px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  cursor: pointer;
  p {
    margin: 0;
    padding: 0;
  }
}
.alayeract{
  position: absolute;
  right: -80px;
  width: 80px;
  height: 80px;
  top: 0;
  z-index: 444;
  background-color: #f1f5f3;
  border-radius: 0px 0px 8px 0px;
  display: flex;
  justify-content: center;
  align-items: center;
  flex-direction: column;
  color: @primary-color;
  cursor: pointer;
  p {
    margin: 0;
    padding: 0;
  }
}